/*
 * Copyright (C) 2008 GeoScheduler Team, as stated on <http://www.geoscheduler.org/authors>.
 * 
 * This file is part of GeoScheduler.
 * 
 * GeoScheduler is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * GeoScheduler is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with GeoScheduler. If not, see <http://www.gnu.org/licenses/>.
 */
package org.geoscheduler.android.rest;

import org.geoscheduler.android.exceptions.GSContextNotInitializedException;
import org.geoscheduler.android.exceptions.GSNotLoggedInException;
import org.geoscheduler.android.exceptions.GSRestFailedException;
import org.geoscheduler.android.exceptions.GSRestReturnedErrorException;
import org.geoscheduler.model.Event;

/**
 * Interface of general event synchronizer.
 * 
 * Events can be synchronized with servers or against other mobile devices (future feature).
 *
 * @author srakyi
 */
public interface EventSynchronizer {

	/**
	 * Synchronizes list of public events using current implementation of {@link EventSynchronizer}.
	 * 
	 * @param lat	Current latitude.
	 * @param lon	Current Longitued.
	 * 
	 * @throws GSNotLoggedInException
	 */
	public void updateTemporaryEvents(int lat, int lon) throws GSRestFailedException, GSRestReturnedErrorException, GSContextNotInitializedException;
	
	public void storePrivateEvent(Event event) throws GSNotLoggedInException;
}
